home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2005 March / Macworld CD March 2005 - Marathon Trilogy.iso / Shareware World / User Interface / RocketLauncher.sit / RocketLauncher / RocketLauncher.CVS / LaunchTextView.m,v < prev    next >
Encoding:
Text File  |  2005-01-09  |  742 b   |  53 lines

  1. head    1.1;
  2. access;
  3. symbols;
  4. locks; strict;
  5. comment    @// @;
  6.  
  7.  
  8. 1.1
  9. date    2005.01.09.19.22.43;    author oleg;    state Exp;
  10. branches;
  11. next    ;
  12.  
  13.  
  14. desc
  15. @@
  16.  
  17.  
  18. 1.1
  19. log
  20. @*** empty log message ***
  21. @
  22. text
  23. @//
  24. //  LaunchTextView.m
  25. //  RocketLauncher
  26. //
  27. //  Created by Oleg Kibirev on 1/9/05.
  28. //  Copyright 2005 My Stuff. All rights reserved.
  29. //
  30.  
  31. #import "LaunchTextView.h"
  32.  
  33.  
  34. @@implementation LaunchTextView
  35. -(void)setTableView: (NSTableView *)tbl {
  36.     table = tbl;
  37. }
  38.  
  39. - (void)keyDown:(NSEvent *)theEvent {
  40.     NSString *s = [theEvent characters];
  41.     if ([s length] == 1) {
  42.         unichar c = [s characterAtIndex:0];
  43.         switch (c) {
  44.             case NSUpArrowFunctionKey: case NSDownArrowFunctionKey:
  45.                 [table keyDown:theEvent];
  46.                 return;
  47.         }
  48.     }
  49.     [super keyDown:theEvent];
  50. }
  51. @@end
  52. @
  53.